package edu.zut.cs.software.sms.customer.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import edu.zut.cs.software.person.customer.domain.Customer;
import edu.zut.cs.software.person.customer.service.CustomerManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;
/**
 * 
 * @author wenmanke
 */
@Controller
@RequestMapping("/customer")
public class CustomerController extends GenericController<Customer, Long, CustomerManager> {

	CustomerManager customerManager;
	
	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/customer/index";
		return result;
	}

	@Autowired
	public void setCustomerManager(CustomerManager customerManager) {
		this.customerManager = customerManager;
		this.manager = this.customerManager;
	}
}
